<?PHP exit('Access Denied');?>
<div class="xm_um">
<!--{if $_G['uid']}-->
  <div id="um">
        <div href="home.php?mod=space&uid=$_G[uid]" class="xm_avt">
            <a href="home.php?mod=space&uid=$_G[uid]" class="xm_ur">
                <!--{avatar($_G[uid],small)}-->
                {$_G[member][username]}
            </a>
			<!--{if getuserprofile('verify1') == 1}-->
			<!--<span class="xm_avt_veri">-->
                <a href="http://uvip.xiaomi.cn" target="_blank">
                    <img src="$_G['setting']['verify']['1'][icon]" class="vm" alt="$_G['setting']['verify']['1']['title']" title="$_G['setting']['verify']['1']['title']" />&nbsp;
                </a>
			<!--</span>-->
            <!--{/if}-->
			<i></i>
        </div>

        {if 0}<a href="member.php?mod=logging&action=logout&formhash={FORMHASH}" class="logout">{lang logout}</a>{/if}
        <a href="home.php?mod=space&do=pm" id="pm_ntc" class="msg{if $_G[member][newpm]} newmsg{/if}" alt="{lang pm_center}">{if $_G[member][newpm]}<em>{$_G[member][newpm]}</em>{/if}</a>

        <div class="xm_um_ex_info">
            <ul class="base_info">
                <li>
                	<!--{hook/global_usernav_extra1}-->
                	<!--{hook/global_usernav_extra2}-->
                    <!--{hook/global_usernav_extra3}-->
                    <a href="home.php?mod=spacecp&ac=credit&showcredit=1" id="extcreditmenu"{if !$_G[setting][bbclosed]} onmouseover="/*delayShow(this, showCreditmenu);*/"{/if}>{lang credits}: $_G[member][credits]</a>
                </li>
                <li>
                    <a href="home.php?mod=spacecp&ac=usergroup" id="g_upmine" onmouseover="/*delayShow(this, showUpgradeinfo)*/">{lang usergroup}: $_G[group][grouptitle]</a>
                </li>
            </ul>
            <div class="action">
                <ul>
		            <!--{if $_G['group']['allowinvisible']}-->
                    <li>
                        <span id="loginstatus">
                            <a id="loginstatusid" href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
                        </span>
                    </li>
		            <!--{/if}-->

                    <li><a href="home.php?mod=spacecp">{lang setup}</a></li>

                    <li><a href="home.php?mod=space&do=pm" id="pm_ntc">{lang pm_center}</a></li>

                    <li>
                        <a href="home.php?mod=space&do=notice" id="myprompt" onmouseover="/*showMenu({'ctrlid':'myprompt'});*/">{lang remind}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt])<!--{/if}--></a>
                        <span id="myprompt_check"></span>
                    </li>

                    <!--{if empty($_G['cookie']['ignore_notice']) && ($_G[member][newpm] || $_G[member][newprompt_num][follower] || $_G[member][newprompt_num][follow] || $_G[member][newprompt])}-->
                    <script language="javascript">delayShow($('myprompt'), function() {showMenu({'ctrlid':'myprompt','duration':3})});</script>
                    <!--{/if}-->

                    <!--{if $_G['setting']['taskon'] && !empty($_G['cookie']['taskdoing_'.$_G['uid']])}-->
                    <li><a href="home.php?mod=task&item=doing" id="task_ntc" class="new" style="background: none;padding-left: 0;">任务<!--{if 0}{lang task_doing}{/if}--></a></li>
                    <!--{/if}-->

                    <!--{if ($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))}-->
                    <li><a href="portal.php?mod=portalcp"><!--{if $_G['setting']['portalstatus'] }-->{lang portal_manage}<!--{else}-->{lang portal_block_manage}<!--{/if}--></a></li>
                    <!--{/if}-->

                    <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->
                    <li><a href="forum.php?mod=modcp&fid=$_G[fid]" target="_blank">{lang forum_manager}</a></li>
                    <!--{/if}-->

                    <!--{if $_G['uid'] && $_G['adminid'] == 1 && $_G['setting']['cloud_status']}-->
                    <li><a href="admin.php?frames=yes&action=cloud&operation=applist" target="_blank">{lang cloudcp}</a></li>
                    <!--{/if}-->

                    <!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
                    <li><a href="admin.php" target="_blank">{lang admincp}</a></li>
                    <!--{/if}-->
		
		<!--{if $_G['uid'] && isset($_G['setting']['footernavs']['stat']) && $_G['setting']['footernavs']['stat']['available'] == 1 && $_G['group']['allowstatdata']}-->
		<li><a href="misc.php?mod=stat">站点统计</a></li>
		<!--{/if}-->

                    <!--{hook/global_usernav_extra2}-->
                    <li><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a></li>
                </ul>
            </div>

        </div>

        <!--{if 0}-->
        <p style="display: none">
            <strong class="vwmy{if $_G['setting']['connect']['allow'] && $_G[member][conisbind]} qq{/if}">
                <a href="home.php?mod=space&uid=$_G[uid]" target="_blank" title="{lang visit_my_space}">
                    {$_G[member][username]}
                </a>
            </strong>

            <!--{if $_G['group']['allowinvisible']}-->
            <span id="loginstatus">
                <a id="loginstatusid" href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
            </span>
            <!--{/if}-->

            <!--{hook/global_usernav_extra1}-->
            <span class="pipe">|</span><!--{hook/global_usernav_extra4}--><a href="home.php?mod=spacecp">{lang setup}</a>
            <span class="pipe">|</span><a href="home.php?mod=space&do=pm" id="pm_ntc"{if $_G[member][newpm]} class="new"{/if}>{lang pm_center}</a>
            <span class="pipe">|</span><a href="home.php?mod=space&do=notice" id="myprompt"{if $_G[member][newprompt]} class="new"{/if} onmouseover="showMenu({'ctrlid':'myprompt'});">{lang remind}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt])<!--{/if}--></a><span id="myprompt_check"></span>
            <!--{if empty($_G['cookie']['ignore_notice']) && ($_G[member][newpm] || $_G[member][newprompt_num][follower] || $_G[member][newprompt_num][follow] || $_G[member][newprompt])}--><script language="javascript">delayShow($('myprompt'), function() {showMenu({'ctrlid':'myprompt','duration':3})});</script><!--{/if}-->
            <!--{if $_G['setting']['taskon'] && !empty($_G['cookie']['taskdoing_'.$_G['uid']])}--><span class="pipe">|</span><a href="home.php?mod=task&item=doing" id="task_ntc" class="new">{lang task_doing}</a><!--{/if}-->
            <!--{if ($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))}-->
                <span class="pipe">|</span><a href="portal.php?mod=portalcp"><!--{if $_G['setting']['portalstatus'] }-->{lang portal_manage}<!--{else}-->{lang portal_block_manage}<!--{/if}--></a>
            <!--{/if}-->

            <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->
                <span class="pipe">|</span><a href="forum.php?mod=modcp&fid=$_G[fid]" target="_blank">{lang forum_manager}</a>
            <!--{/if}-->

            <!--{if $_G['uid'] && $_G['adminid'] == 1 && $_G['setting']['cloud_status']}-->
                <span class="pipe">|</span><a href="admin.php?frames=yes&action=cloud&operation=applist" target="_blank">{lang cloudcp}</a>
            <!--{/if}-->

            <!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
                <span class="pipe">|</span><a href="admin.php" target="_blank">{lang admincp}</a>
            <!--{/if}-->

            <!--{hook/global_usernav_extra2}-->
            <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>

        </p>

        <p style="display: none">
            <!--{hook/global_usernav_extra3}-->
            <a href="home.php?mod=spacecp&ac=credit&showcredit=1" id="extcreditmenu"{if !$_G[setting][bbclosed]} onmouseover="delayShow(this, showCreditmenu);" class="showmenu"{/if}>{lang credits}: $_G[member][credits]</a>
            <span class="pipe">|</span><a href="home.php?mod=spacecp&ac=usergroup" id="g_upmine" class="showmenu" onmouseover="delayShow(this, showUpgradeinfo)">{lang usergroup}: $_G[group][grouptitle]</a>
        </p>
        <!--{/if}-->

    </div>
    <!--{elseif 0 && !empty($_G['cookie']['loginuser'])}-->
    <p>
        <strong>
            <a id="loginuser" class="noborder"><!--{echo dhtmlspecialchars($_G['cookie']['loginuser'])}--></a>
        </strong>
        <span class="pipe">|</span><a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)">{lang activation}</a>
        <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
    </p>
    <!--{elseif 0 && !$_G[connectguest]}-->
        <!--{template member/login_simple}-->
    <!--{else}-->
    <div id="um">
        <!--{if 0}-->
            <div class="avt y">
                <!--{avatar(0,small)}-->
            </div>

            <p>
                <strong class="vwmy qq">{$_G[member][username]}</strong>
                <!--{hook/global_usernav_extra1}-->
                <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
            </p>
            <p>
                <a href="home.php?mod=spacecp&ac=credit&showcredit=1">{lang credits}: 0</a>
                <span class="pipe">|</span>{lang usergroup}: $_G[group][grouptitle]
            </p>
        <!--{/if}-->

        <p class="login">
            <a href="member.php?mod=logging&action=login&referer={echo rawurlencode($dreferer)}" onClick="showWindow('login', this.href);return false;">登录</a>
            <span class="pipe">|</span>
            <a href="member.php?mod={$_G[setting][regname]}">注册</a>
        </p>
    </div>
<!--{/if}-->
</div>
